﻿using Microsoft.AspNetCore.Identity;

namespace SageKing.OpenIddict.UI.Infrastructure.Data;

// Add profile data for application users by adding properties to the ApplicationUser class
public class AppUser : TenantIdentityUser<long> // 主键类型改为 Guid
{

    public string? FullName { get; set; }   // 添加自定义字段
    public DateTime? BirthDate { get; set; } // 可空日期字段

}

public class AppRole : TenantIdentityRole<long> // 主键类型改为 Guid
{
    public AppRole() : base() { }
    public AppRole(string roleName) : base()
    {
        this.Name = roleName;
    }
}
